﻿Feature: Creation of a Shopping List
	As a man not accustomed to do the shopping for the household
	I want to be able to create a shopping list with my wife easily and in a fast way
	So that I can buy all the necessary provisions for the family for one week efficiently

@mytag @proposal @wip @notag
Scenario Outline: Add a product to the shopping list without predefined list of products 
	Given the predefined products list is empty
	Given I have created a new empty shopping list "shoppinglist"
	When I add a new "product" to the shopping list
	Then I have 1 new product on the shopping list
	And the new "product" appears in the shopping list

	Examples:
	| product  | shoppinglist  |
	| tomatoes | shoppinglist1 |
	| cheese   | shoppinglist2 |

Scenario Outline: Add several products to the shopping list without predefined list of products 
	Given the predefined products list is empty
	Given I have created a new empty shopping list "shoppinglist"
	When I add a new "product1" to the shopping list
	When I add a new "product2" to the shopping list
	When I add a new "product3" to the shopping list
	When I add a new "product4" to the shopping list
	When I add a new "product5" to the shopping list
	Then I have 5 new products on the shopping list
	And the "product1", "product2", "product3", "product4", "product5" appear in the shopping list

	Examples:
	| product1 | product2 | product3 | product4 | product5 | shoppinglist  |
	| tomatoes | bananas  | salt     | brocoli  | chicken  | shoppinglist5 |
	| cheese   | noodles  | pepper   | beef     | lamb     | shoppinglist5 |
	| pork     | eggs     | café     | knödel   | curaçao  | shoppinglist5 |


Scenario Outline: Add several products to an initial non-empty shopping list without predefined list of products 
	Given the predefined products list is empty
	Given I have an initial shopping list containing the products "product1" and "product2"
	When I add a new "product3" to the shopping list
	When I add a new "product4" to the shopping list
	When I add a new "product5" to the shopping list
	Then I have 5 products on the shopping list
	And the "product1", "product2", "product3", "product4", "product5" appear in the shopping list

	Examples:
	| product1 | product2 | product3 | product4 | product5 |
	| noodles  | bananas  | salt     | brocoli  | chicken  |
	| spätzli  | tomatoes | pepper   | beef     | lamb     |
	| pute     | oeufs    | café     | knödel   | curaçao  |


Scenario Outline: Remove several products from an initial non-empty shopping list 
	Given I have an initial shopping list containing the products "product1" and "product2"
	When I add a new "product3" to the shopping list
	When I add a new "product4" to the shopping list
	When I add a new "product5" to the shopping list
	When I remove "product2" from the shopping list
	When I remove "product4" from the shopping list
	Then I have 3 products on the shopping list
	And the "product1", "product3", "product5" remain in the shopping list

	Examples:
	| product1 | product2 | product3 | product4 | product5 |
	| noodles  | bananas  | salt     | brocoli  | chicken  |
	| spätzli  | tomatoes | pepper   | beef     | lamb     |
	| pute     | oeufs    | café     | knödel   | curaçao  |

Scenario Outline: Add a product to the shopping list and automatically to the empty predefined list of products 
	Given the predefined products list is empty
	And I have created a new empty shopping list
	When I add a new "product" to the shopping list
	Then I have 1 new product on the shopping list
	And I have 1 new product on the predefined products list
	And the new "product" appears in the shopping list
	And the new "product" appears in the predefined products list

	Examples:
	| product |
	| tomatoes |
	| cheese   |

